/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ykht.proj.coupon.entity.CnCare;
import com.ykht.proj.coupon.entity.CnCouShop;
import com.ykht.proj.coupon.vo.CnCarePageResp;
import com.ykht.proj.coupon.vo.CnShopSimpleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 优惠券店铺中间表
 *
 * @author proj code generator
 * @date 2020-11-20 18:15:23
 */
@Mapper
public interface CnCouShopMapper extends BaseMapper<CnCouShop> {

	List<CnShopSimpleVo> findShop4CouponListByCouponId(@Param("couponId") Long couponId);

	IPage<CnCarePageResp> opPage(Page page,@Param("req") CnCare req);

	List<CnShopSimpleVo> findShop4CouponListByCouponIds(@Param("ids") List<Long> ids);
}
